package com.winshare.saleAssistant.dao;

import com.winshare.saleAssistant.domain.entity.RoleDO;
import com.winshare.saleAssistant.domain.entity.RoleMenuDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface MenuRoleMapper {

    int batchInsertRoleMenu(@Param("roleMenuList")List<RoleMenuDO> roleMenuList);

    int countMenuByRole(RoleDO roleDO);

    int deleteByRole(RoleDO roleDO);

}
